<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--<h1 th:text="${user.name}"></h1>-->
<!--<h1 th:text="${user.age}"></h1>-->

<!--<h2 th:object="${user}">-->
<!--    <h1 th:text="*{name}"></h1>-->
<!--    <h1 th:text="*{age}"></h1>-->
<!--</h2>-->

<!--<h2 th:object="${user}">-->
<!--    <p>FirstName: <span th:text="*{name.split(' ')[0]}">Jack</span>.</p>-->
<!--    <p>LastName: <span th:text="*{name.split(' ')[1]}">Li</span>.</p>-->
<!--</h2>-->

<p>
  今天是: <span th:text="${#dates.format(today,'yyyy-MM-dd')}">2018-04-25</span>
</p>

</body>
</html>